<script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script>

<form action="" method="post">

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes">
	
		<? $t = true; 
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">

				<p><label><?=t("Block title")?><br />
					<input type="text" class="wide" name="weather[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'weather')?>" />
				</label></p>

				<p><label><?=t("Today")?><br />
					<input type="text" class="wide" name="today[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'today')?>" />
				</label></p>

				<p><label><?=t("Tomorrow")?><br />
					<input type="text" class="wide" name="tomorrow[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'tomorrow')?>" />
				</label></p>
				
			</div><? 
		
		$t = false; } ?>
	
	</div>

	<fieldset>
		<legend> Yet another settings </legend>
				

		<p><label><?=t("City Id")?>
			<input type="text" name="city_id" class="narrow" value="<?=hdat('settings', 'city_id')?>">
		</label></p>
	
		<p><label><?=t("Path to weather icons")?>
			<input type="text" name="icon_path" class="wide" value="<?=hdat('settings', 'icon_path')?>">
		</label></p>
	
	</fieldset>

	<p><input type="submit" name="editor_save" value="Save" /></p>

</form>
